﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:view="clr-namespace:MVVMFramework.View;assembly=MVVMFramework.View">

    <view:BoolToVisibilityConverter x:Key="VisibleIfTrue"/>
    <view:BoolToVisibilityConverter x:Key="CollapsedIfTrue" IsReversed="True"/>
    <view:BoolToVisibilityConverter x:Key="HiddenIfFalse" UseHidden="True"/>
    <view:BoolToVisibilityConverter x:Key="HiddenIfTrue" UseHidden="True" IsReversed="True"/>

    <view:IntegerToVisibilityConverter x:Key="VisibleIfZero" IntegerValue="0"/>
    <view:IntegerToVisibilityConverter x:Key="CollapsedIfZero" IntegerValue="0" IsReversed="True"/>
    <view:IntegerToVisibilityConverter x:Key="VisibleIfSeven" IntegerValue="7" FallbackBehavior="ThrowException"/>

    <view:DefaultValueToVisibilityConverter x:Key="VisibleIfDefault"/>
    <view:DefaultValueToVisibilityConverter x:Key="CollapsedIfDefault" IsReversed="True"/>

    <Style TargetType="Button">
        <Setter Property="Margin" Value="4"/>
        <Setter Property="MinWidth" Value="80"/>
    </Style>

    <Style TargetType="TextBlock">
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style TargetType="TextBox">
        <Setter Property="Margin" Value="4"/>
    </Style>

    <Style TargetType="view:DateTimePicker">
        <Setter Property="Margin" Value="4"/>
    </Style>

</ResourceDictionary>